package com.example.mygrade.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.example.mygrade.domain.Course;
import com.example.mygrade.domain.Student;
import lombok.Data;

import java.io.Serializable;

@Data
public class importCourse implements Serializable {
    /**
     * 课程号
     */
    @Excel(name = "课程号",width = 10.0)
    private String cno;
    /**
     * 课程名
     */
    @Excel(name = "课程名",width = 10.0)
    private String cname;
    /**
     * 学时
     */
    @Excel(name = "学时",width = 5.0)
    private Integer chour;
    /**
     * 学分
     */
    @Excel(name = "学分",width = 5.0)
    private Integer credit;

    /**
     * 院系编号
     */
    @Excel(name = "院系编号",width = 13.0)
    private Integer deptid;

    /**
     * 专业编号
     */
    @Excel(name = "专业编号",width = 13.0)
    private String mid;

    /**
     * 选课人数
     */
    @Excel(name = "选课人数",width = 13.0)
    private Integer xkrs;

    public importCourse(Course course){
        this.cno = course.getCno();
        this.cname = course.getCname();
        this.chour = course.getChour();
        this.credit = course.getCredit();
        this.deptid = course.getDeptid();
        this.mid = course.getMid();
        this.xkrs = course.getXkrs();
    }
}
